﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Metro.Kashikoi.ServiceContract.Security
{
    public class ValidateUserClient :  ClientBase<IValidateService>, IValidateService
    {

        #region Constructor
        ///// <summary>
        ///// Initializes a new instance of the <see cref="ValidateUserClient"/> class.
        ///// </summary>
        //public ValidateUserClient() { }

        /// <summary>
        /// Initializes a new instance of the <see cref="ValidateUserClient"/> class.
        /// </summary>
        public ValidateUserClient() :
            base("user") { }

        /// <summary>
        /// Initializes a new instance of the <see cref="ValidateUserClient"/> class.
        /// </summary>
        /// <param name="remoteAddress">The remote address.</param>
        public ValidateUserClient(string remoteAddress) :
            base("user", remoteAddress) { }
        #endregion

        public bool ValidateUser(string id, string password)
        {
            return base.Channel.ValidateUser(id, password);
        }
    }
}
